package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ShopeelistinginfoMapper;
import com.ruoyi.system.domain.Shopeelistinginfo;
import com.ruoyi.system.service.IShopeelistinginfoService;
import com.ruoyi.common.core.text.Convert;

/**
 * shopee商品信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-07-15
 */
@Service
public class ShopeelistinginfoServiceImpl implements IShopeelistinginfoService 
{
    @Autowired
    private ShopeelistinginfoMapper shopeelistinginfoMapper;

    /**
     * 查询shopee商品信息
     * 
     * @param itemid shopee商品信息ID
     * @return shopee商品信息
     */
    @Override
    public Shopeelistinginfo selectShopeelistinginfoById(String itemid)
    {
        return shopeelistinginfoMapper.selectShopeelistinginfoById(itemid);
    }

    /**
     * 查询shopee商品信息列表
     * 
     * @param shopeelistinginfo shopee商品信息
     * @return shopee商品信息
     */
    @Override
    public List<Shopeelistinginfo> selectShopeelistinginfoList(Shopeelistinginfo shopeelistinginfo)
    {
        return shopeelistinginfoMapper.selectShopeelistinginfoList(shopeelistinginfo);
    }

    /**
     * 新增shopee商品信息
     * 
     * @param shopeelistinginfo shopee商品信息
     * @return 结果
     */
    @Override
    public int insertShopeelistinginfo(Shopeelistinginfo shopeelistinginfo)
    {
        return shopeelistinginfoMapper.insertShopeelistinginfo(shopeelistinginfo);
    }

    /**
     * 修改shopee商品信息
     * 
     * @param shopeelistinginfo shopee商品信息
     * @return 结果
     */
    @Override
    public int updateShopeelistinginfo(Shopeelistinginfo shopeelistinginfo)
    {
        return shopeelistinginfoMapper.updateShopeelistinginfo(shopeelistinginfo);
    }

    /**
     * 删除shopee商品信息对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteShopeelistinginfoByIds(String ids)
    {
        return shopeelistinginfoMapper.deleteShopeelistinginfoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除shopee商品信息信息
     * 
     * @param itemid shopee商品信息ID
     * @return 结果
     */
    @Override
    public int deleteShopeelistinginfoById(String itemid)
    {
        return shopeelistinginfoMapper.deleteShopeelistinginfoById(itemid);
    }
}
